package com.woniuxy.hotel.api;

import com.woniuxy.common.Result;
import com.woniuxy.hotel.form.PolicyForm;
import com.woniuxy.hotel.form.RoomForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author kevin kwok
 * @create 2021-05-24 15:11
 */
/*房间管理的接口*/
@FeignClient(value = "business",contextId = "room")
public interface RoomManagement {
    /*新增房间*/
    @PostMapping("/addRoom")
    public Result addRoom(@RequestBody RoomForm roomForm);

    /*删除房间*/
    @DeleteMapping("/deleteRoom")
    public Result deleteRoom(Integer roomId);

    /*修改房间信息*/
    @PutMapping("/modifyRoom")
    public Result modifyRoom(Integer roomId,@RequestBody RoomForm roomForm);

    /*查询当前所有的房间*/
    @GetMapping("/queryAllRooms")
    public Result queryAllRooms();

    /*查询某一特色类型的房间*/
    @GetMapping("/queryAllRoomsByFeature")
    public Result queryAllRoomsByFeature(String roomFeature);

    /*查询某一类型的房间*/
    @GetMapping("/queryAllRoomsByType")
    public Result queryAllRoomsByType(String roomType);




}
